/*
 *  Copyright 2023 Collate.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

@import '../../../styles/variables.less';

.ant-tag.tag-chip {
  max-width: 100%;
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  border-color: @border-color;
}

.ant-tag.tag-highlight {
  .tags-label {
    background-color: @text-highlighter!important;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
}

.ant-tag.tag-chip-content {
  width: max-content;
  max-width: 200px;
  margin: 0px;
  border: none;
  padding: 2px 0;
  background: @tag-background-color;
  border-radius: @border-rad-xs;

  &.diff-added {
    background: @success-background-color;
  }

  &.small {
    height: inherit;
    margin: inherit;
  }
}
.ant-tag.tag-chip-content.new-chip-style {
  .ant-select-selection-item {
    border: 1px solid @blue-30;
    border-radius: @border-rad-xs;
    background: @blue-29;
    height: 30px;
  }

  .ant-select-selection-item {
    display: flex;
    align-items: center;
  }
  border: 1px solid @blue-30;
  background: @blue-29;
  border-radius: @border-rad-xs;
  .tags-label {
    color: @tag-text;
    font-weight: @font-regular;
  }
}
.ant-tag.tag-chip-content.new-chip-style-with-color {
  border: 1px solid @blue-30;
  border-radius: @border-rad-xs;
  .tags-label {
    color: @tag-text;
    font-weight: @font-regular;
  }
}
.ant-tag.tag-chip-add-button {
  padding: 3px 8px;
  background: @white;
}

.tag-color-bar {
  border-left: 5px solid @tag-background-color;
}

.tags-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-content-container {
  min-width: 0;
}
